package com.shen.plugins

import com.android.build.gradle.AppExtension
import com.shen.plugins.transform.LinelogHunterTransform

import org.gradle.api.Plugin
import org.gradle.api.Project

class CustomPlugin implements Plugin<Project> {
    @Override
    void apply(Project project) {
        printf("------")
        AppExtension appExtension = (AppExtension)project.getProperties().get("android");
        appExtension.registerTransform(new LinelogHunterTransform(project), Collections.EMPTY_LIST);
    }
}